"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Array) {
  const _easycom_up_text2 = common_vendor.resolveComponent("up-text");
  _easycom_up_text2();
}
const _easycom_up_text = () => "../../node-modules/uview-plus/components/u-text/u-text.js";
if (!Math) {
  _easycom_up_text();
}
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  __name: "moduleOuterBox",
  props: {
    moduleIcon: {
      type: String,
      default: ""
    },
    moduleTitle: {
      type: String,
      default: ""
    },
    showMore: {
      type: Boolean,
      default: false
    },
    modeType: {
      type: Number,
      default: 0
    },
    showQuery: {
      type: Boolean,
      default: false
    },
    showTotal: {
      type: Boolean,
      default: false
    },
    totalNum: {
      type: Number,
      default: 0
    }
  },
  emits: ["onMoreBtn", "scanModuleDeatil", "changeMode"],
  setup(__props, { emit: __emit }) {
    const emit = __emit;
    const onMore = () => {
      emit("onMoreBtn");
    };
    const scanDeatil = () => {
      emit("scanModuleDeatil");
    };
    const onMode = (mode) => {
      emit("changeMode", mode);
    };
    return (_ctx, _cache) => {
      return common_vendor.e({
        a: __props.moduleIcon,
        b: common_vendor.t(__props.moduleTitle),
        c: __props.showMore
      }, __props.showMore ? {
        d: common_vendor.o(onMore),
        e: common_vendor.p({
          suffixIcon: "arrow-right",
          iconStyle: {
            color: "#000",
            fontSize: "20rpx"
          },
          text: "更多",
          color: "#000000",
          size: "25rpx"
        })
      } : {}, {
        f: __props.showTotal
      }, __props.showTotal ? {
        g: common_vendor.t(__props.totalNum)
      } : {}, {
        h: __props.showQuery
      }, __props.showQuery ? {
        i: common_vendor.n(__props.modeType == 0 ? "opt-btn opt-btn-active" : "opt-btn opt-btn-unactive"),
        j: common_vendor.o(($event) => onMode(0)),
        k: common_vendor.n(__props.modeType == 1 ? "opt-btn opt-btn-active ml-2" : "opt-btn opt-btn-unactive ml-2"),
        l: common_vendor.o(($event) => onMode(1))
      } : {}, {
        m: common_vendor.o(scanDeatil)
      });
    };
  }
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-94e4578b"]]);
wx.createComponent(Component);
